package com.example.myproject.java8.fanxing;

import java.util.ArrayList;
import java.util.List;

public class TestList {

    public static void main(String[] args) {
      //  List<Sub> re = getList2();
    }

    public static List<Sub> getList(){
        return  new ArrayList<Sub>();
    }

    public static List<?> getList2(){
        return  new ArrayList<Parent>();
    }


    class Parent{
        public String age;
    }

    class Sub extends  Parent{

    }
}
